#ifndef WLTERM_DATA_H
#define WLTERM_DATA_H
#include <gtk/gtk.h>

#define 	FLAG_BRIGHT			0x0001
#define 	FLAG_BLINK			0x0002
#define		FLAG_UNDERLINE		0x0004
#define		FLAG_INVERSE		0x0008	
#define		FLAG_INVISIBLE		0x0010	
/* is modified ? */
#define 	FLAG_BRIGHT_M		0x0001
#define 	FLAG_BLINK_M		0x0002
#define		FLAG_UNDERLINE_M	0x0004
#define		FLAG_INVERSE_M		0x0008	
#define		FLAG_INVISIBLE_M	0x0010	
#define		FLAG_FG_M			0x0020	
#define		FLAG_BG_M			0x0040	
#define		FLAG_M_MASK			0x00ff

typedef struct _WltermData {
	gchar ch;
	gint16 flag;
	gint16 flag_m;
	gint8 fg;
	gint8 bg;
} WltermData;

/* functions declare */
gboolean flag_is(gint16 flag, gint16 f);
void flag_set(gint16 *flag, gint16 f, gboolean b);
#endif /* WLTERM_DATA_H */

